﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucTestimonialsDetail.ascx.cs"
    Inherits="Indochinaodyssey.UserControl.Testimonials.TestimonialsDetail" %>
<style type="text/css">
    div.testimonial-more p
    {
        padding: 0 0 0 0;
        margin: 0 0 0 0;
        display: inline;
    }
</style>
<asp:DataList ID="DataList1" runat="server" DataSourceID="ObjectDataSource1" Width="100%">
    <ItemTemplate>
        <asp:Label ID="NoiDungLabel" runat="server" Text='<%# Eval("NoiDung") %>' />
        <br />
    </ItemTemplate>
</asp:DataList>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetById"
    TypeName="IOBusiness.clsBSTestimonials">
    <SelectParameters>
        <asp:QueryStringParameter Name="id" QueryStringField="id" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>
<div class="testimonial-more">
    <b>More:</b><br />
    <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="GetAll"
        TypeName="IOBusiness.clsBSTestimonials">
        <SelectParameters>
            <asp:QueryStringParameter Name="id" QueryStringField="id" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:DataList ID="DataList2" runat="server" DataSourceID="ObjectDataSource2" Width="100%">
        <ItemTemplate>
            <table style="width: 100%;">
                <tr>
                    <td style="width: 16px; vertical-align: top">
                        <img alt="tab" class="tab" src="../../Style/Images/tab_right.png" />
                    </td>
                    <td style="vertical-align: top">
                        <asp:HyperLink ID="linkTestimonial" runat="server" NavigateUrl='<%# "~/TestimonialsDetail.aspx?id="+ Eval("Id") %>'><%# Eval("NoiDung") %>...</asp:HyperLink>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:DataList>
</div>
